package com.thread.threadfirst.javaBase.java8;

public class Role {

    private Long Id;
    private String name;
    private Integer gold;

    public Role(Long id, String name, Integer gold) {
        Id = id;
        this.name = name;
        this.gold = gold;
    }

    public Long getId() {
        return Id;
    }

    public void setId(Long id) {
        Id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getGold() {
        return gold;
    }

    public void setGold(Integer gold) {
        this.gold = gold;
    }

    @Override
    public String toString() {
        return "Role{" +
                "Id=" + Id +
                ", name='" + name + '\'' +
                ", gold=" + gold +
                '}';
    }

}
